<div class="leftBox">

<?php echo form_fieldset('Event Information');?>

	<table class="tableInfo">
		<tr>
			<td><b>Name: </b><?php echo $event_name ?></td>
		</tr>
		<tr>
			<td><b>Description: </b><?php echo $event_info ?></td>
		</tr>
		<tr>
			<td><b>Started: </b><?php echo $event_date ?></td>
		</tr>
	</table>

<?php echo form_fieldset_close(); ?>

<?php echo br(1); ?>

<?php echo form_fieldset('Positions for voting:');?>

	<p class=" <?php echo ( $qryNum == 0 ? 'alert' : 'info' ) ?> "> <?php echo $result_msg ?> </p >

	<?php foreach( $posArr->result() as $pos ): ?>
	
		<table class="mouseout" onmouseover="this.className='mouseover'" onmouseout="this.className='mouseout'" onclick="window.location='<?php echo base_url_links().'position/show/id/'.$pos->id ?>'">
			<tr>
				<th>Position:</th><td> <?php echo $pos->pos_name ?> </td>
			</tr>
			<tr>
				<th>Info:</th><td> <?php echo $pos->pos_desc ?> </td>
			</tr>
			<tr>
				<th>Winning candidate/s:</th><td> <?php echo $pos->pos_win_votes ?> </td>
			</tr>
		</table>
		
		<?php echo ( $pos == end($posArr->result()) ? '' : '<hr />' ) ?>
	

	<?php endforeach; ?>

<?php echo form_fieldset_close(); ?>




</div>

<div id="rightBoxDiv">
		<div class="rightBox">
		<h2>Options</h2>
			<ul>
			<li>Status: <?php echo ( $status == 0 ? '<span> Closed for voting  ' : '<span> Open for voting' ) ?> </span></li>
			<div id="moreOptions">
			
			</div>
			</ul>
	    </div>
	    <?php $ci =& get_instance(); ?>
		<?php if($ci->session->userdata('DX_role_id') == 1):  ?>
			<div class="rightBox">
				<h2>Admin Functions</h2>
				<ul>
					<li><?php echo anchor('position/newPos/event_id/'.$event_id, 'Add new position') ?></li>
				</ul>
			</div>
		<?php endif; ?>
</div>